// app.js
App({
  onLaunch: function () {
    // 展示本地存储能力
    const logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)

    // 初始化购物车
    if (!wx.getStorageSync('cart')) {
      wx.setStorageSync('cart', [])
    }
  },
  globalData: {
    userInfo: null,
    cart: [],
    selectedItems: [] // 用于轮盘选择的菜品
  }
}) 